import Layout from '@/views/layout/index.vue'
const routers = [
  {
    path: "/",
    component: () => import("@/views/common/login.vue"),
    title: "登录",
    redirect:"/login"

  },
  {
    path: "/teacher",
    component: () => import("@/views/teacher/teacher.vue"),
    title: "教师",
    redirect:"/query",
    children: [
      {
        path: "/query",
        component: () => import("@/components/teacher/query.vue"),
        title: '申请处理',
        meta: {
          title: "申请处理",
        },
      },
      {
        path: "/useResults",
        component: () => import("@/components/teacher/useResults.vue"),
        title: '申请处理',
        meta: {
          title: "申请处理",
        },
      },
      {
        path: "/newsType",
        component: () => import("@/components/teacher/addPatent.vue"),
        title: '新闻类别',
        meta: {
          title: "新闻类别",
        },
      },
      {
        path: "/patentList",
        component: () => import("@/components/teacher/patentList.vue"),
        title: '专利列表',
        meta: {
          title: "专利列表",
        },
      },
      {
        path: "/labAdministration",
        component: () => import("@/components/teacher/labAdministration.vue"),
        title: '实验室管理',
        meta: {
          title: "实验室管理",
        },
      },
      
    ]
  },
  {
    path: "/register",
    component: () => import("@/views/common/register.vue"),
    title: "注册",
    redirect:"/register"

  },
  {
    path: "/reset",
    component: () => import("@/views/common/reset.vue"),
    title: "重置",
    redirect:"/reset"

  },
  {
    path: "/laboratoryApply",
    component: () => import("@/views/laboratoryApply/laboratoryApply.vue"),
    title: '首页',
    meta: {
      title: "首页",
    },
  },
  {
    path: "/news/:id",
    component: () => import("@/views/home/news.vue"),
    title: '新闻',
    meta: {
      title: "新闻",
    },
  },
  {
    path: "/newstwo",
    component: () => import("@/views/home/newstwo.vue"),
    title: '新闻2',
    meta: {
      title: "新闻2",
    },
  },
  {
    path: "/newsthree",
    component: () => import("@/views/home/newsthree.vue"),
    title: '新闻3',
    meta: {
      title: "新闻3",
    },
  },
  {
    path: "/la",
    component: Layout,
    title: '首页',
    redirect: "/index",
    children: [
      {
        path: "/index",
        component: () => import("@/views/home/home.vue"),
        title: '首页',
        meta: {
          title: "首页",
        },
      },
      {
        path: "/personalCenter",
        component: () => import("@/views/personalCenter/personalCenter.vue"),
        title: '个人中心',
        meta: {
          title: "个人中心",
        },
      },
      {
        path: "/patentWall",
        component: () => import("@/views/patentWall/patentWall.vue"),
        title: '专利墙',
        meta: {
          title: "专利墙",
        },
      },
      
    ]
  },
  
];

export { routers };
